package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 供应商信息表
 * </p>
 *
 * @author author
 * @since 2025-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("supplier")
@ApiModel(value="Supplier对象", description="供应商信息表")
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "supplier_id", type = IdType.AUTO)
    @ApiModelProperty(value = "供应商ID，主键自增", example = "1")
    private Long supplierId;

    @TableField("supplier_name")
    @ApiModelProperty(value = "供应商名称", required = true, example = "XX科技有限公司")
    private String supplierName;

    @TableField("supplier_level")
    @ApiModelProperty(value = "供应商等级", example = "一级")
    private String supplierLevel;

    @TableField("contact_person")
    @ApiModelProperty(value = "联系人姓名", example = "张三")
    private String contactPerson;

    @TableField("contact_phone")
    @ApiModelProperty(value = "联系电话", example = "13800138000")
    private String contactPhone;

    @TableField("contact_email")
    @ApiModelProperty(value = "联系邮箱", example = "contact@example.com")
    private String contactEmail;

    @TableField("contact_position")
    @ApiModelProperty(value = "联系人职位", example = "销售经理")
    private String contactPosition;

    @TableField("region")
    @ApiModelProperty(value = "所在地区", example = "广东省深圳市")
    private String region;

    @TableField("address")
    @ApiModelProperty(value = "详细地址", example = "南山区科技园路1号")
    private String address;

    @TableField("remarks")
    @ApiModelProperty(value = "备注信息")
    private String remarks;

    @TableField("created_by")
    @ApiModelProperty(value = "创建人", required = true, example = "admin")
    private String createdBy;

    @TableField("created_time")
    @ApiModelProperty(value = "创建时间", required = true, example = "2025-06-19 10:00:00")
    private LocalDateTime createdTime;

    @TableField(exist = false)
    private List<MaterialSupplier> materials;
}